package lab02.test16;
import java.util.*;
public class Test16 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (true) {


            System.out.println("请输入两个数：");
            Add add = new Add();
            Minus minus = new Minus();
            Multipe multipe = new Multipe();
            Devide devide = new Devide();
            double i = scanner.nextInt();
            double j = scanner.nextInt();

            System.out.println("加法：" + add.arithmetic(i, j));
            System.out.println("减法：" + minus.arithmetic(i, j));
            System.out.println("乘法：" + multipe.arithmetic(i, j));
            System.out.println("除法：" + devide.arithmetic(i, j));}

    }
}